package com.ocom.xfrecode.controller;


/**
 * 天感定制报表
 */

import com.ocom.common.constant.RecodeUrl;
import com.ocom.common.request.xfrecde.GetConsDeptByMealTimesReq;
import com.ocom.common.request.xfrecde.GetConsPerByMealTimesReq;
import com.ocom.common.resp.Result;
import com.ocom.xfrecode.service.XfRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TianGanController {

    @Autowired
    private XfRecordService xfRecordService;


    @PostMapping(RecodeUrl.URL_getConsPerByMealTimes)
    public Result getConsPerByMealTimes(@RequestBody GetConsPerByMealTimesReq request){
        return xfRecordService.getConsPerByMealTimes(request);
    }


    @PostMapping(RecodeUrl.URL_getConsDeptByMealTimes)
    public Result getConsDeptByMealTimes(@RequestBody GetConsDeptByMealTimesReq request){
        return xfRecordService.getConsDeptByMealTimes(request);
    }
}
